package atguigu03._extends.exer2;

/**
 * ClassName: Cylinder
 * Package: atguigu03._extends.exer2
 * Description:
 *
 * @Author BuTang
 * @Create 2023/3/6 10:26
 * @Version 1.0
 */
public class Cylinder extends Circle{
    private double length;

    public Cylinder() {
        length =1;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }
    public double findVoluem(){
        return length*findArea();
    }
}
